//------------------------------------------------------------------------------------
#ifndef __CMAP_H__
#define __CMAP_H__
//------------------------------------------------------------------------------------
#include "common.h"
#include "CMur.h"
#include "CSol.h"
//------------------------------------------------------------------------------------
class CMap : public CSprite {
    public:
        CMap(void);
        ~CMap(void);
        void load(QString ressourceName);
        void draw(QPainter *painter, int idxImage);
		int getNbImage(void) { return 0; }
        const QPoint getDefaultSnakePos(void) { return defaultSnakePos; }
        bool isOnMur(int index) { return map[index]; }
    private:
        bool map[NB_CELL_WIDTH*NB_CELL_HEIGHT];
        CMur *mur;
		CSol *sol;
        QPoint defaultSnakePos;
};
//------------------------------------------------------------------------------------
#endif //__CMAP_H__
//------------------------------------------------------------------------------------
